<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/common/includes.jsp" %>

<!DOCTYPE html>
<html lang="${currentLocale}">
<head>
	<title>zzzzzz - 修改</title>
	<%@ include file="/WEB-INF/common/meta.jsp" %>
	<%@ include file="/WEB-INF/common/global_res.jsp" %>
	<script type="text/javascript" src="<c:url value="/res/validate/jquery.validate.min.js" />"></script>
	<script type="text/javascript" src="<c:url value="/res/validate/messages_zh_CN.js" />"></script>
</head>
<body>

<%@ include file="/WEB-INF/common/header.jsp" %>

<div class="container">
	<div class="row">
		<div class="span9">
			<h3>修改</h3>
			<c:if test="${not empty message}">
				<div class="${message.type.cssClass}">${message.text}</div>
			</c:if>
			<c:url var="actionUrl" value="/picitem/add" />
			<form:form modelAttribute="picItemForm" action="${actionUrl}" method="post">
				<table class="table">
					<tbody>
						<c:forEach var="picItemView" items="${picItemViewList}" varStatus="status">
						<tr>
							<td>
								<img src='<c:url value="/img/picitem/n/${picItemView.id}.jpg" />' class="img-picitemedit" />
								<br/>
								<form:radiobutton path="coverId" value="${picItemView.id}"/>设置为封面 
							</td>
							<td>
								<form:input path="textSMap['${picItemView.id}']" value="${picItemView.textS}" cssStyle="width: 300px; height:90px;"/>
							</td>
						</tr>
						</c:forEach>
					</tbody>
				</table>
				<button type="submit" class="btn">提交</button>
			</form:form>
		</div>
		<div class="span3 rightbox">
			<div class="row-fluid">
				<div class="span12">
					<p style="padding-bottom: 20px;"><img src="${ctx}/res/imgs/test/1.jpg" alt="" class="pull-right"></p>
					<p><img src="${ctx}/res/imgs/test/2.jpg" alt="" class="pull-right"></p>
				</div>
			</div>
		</div>
	</div>
</div>

<%@ include file="/WEB-INF/common/footer.jsp" %>

</body>
</html>